package com.itheima.reggie.common;

public class BaseContext {
    private static ThreadLocal<Long> LOCAL = new ThreadLocal<>();

    public static void setCurrentId(Long id){
        LOCAL.set(id);
    }
    public static Long getCurrentId(){
        return LOCAL.get();
    }
    public static void removeCurrentId(){
        LOCAL.remove();
    }

}
